package com.pcb.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * create by yongli on 2022-04-13 17:27
 */

@RefreshScope
@Component
public class ConstantConfig {

    @Value("${user.name}")
    public String userName;
    @Value("${user.name}")
    String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
}
